package com.hxk.pojo;

import java.util.List;

public class Teacher {

	private int tid;
	
	private String name;
	
	private List<Student> slist;
	
	public Teacher() {};
	
	public Teacher(String name) {
		super();
		this.name = name;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Student> getSlist() {
		return slist;
	}

	public void setSlist(List<Student> slist) {
		this.slist = slist;
	}

	@Override
	public String toString() {
		return "Teacher [tid=" + tid + ", name=" + name + "]";
	}
	
}
